Java Mine
ContentsIndexHome
PreviousUpNext
Gateway.Gateway Constructor (long, eGatewayType, String, String, String, int, SecretKey, byte[])
Syntax
Java
public Gateway(long gatewayID, eGatewayType gatewayType, String gatewayFirmwareVersion, String radioFirmwareVersion, String hostAddress, int port, SecretKey encryptionKey, byte[] encryptionIV);
Parameters 
Description 
long gatewayID 
The unique identifier of a gateway  
eGatewayType gatewayType 
The type of gateway that will be created such as usb or ethernet  
String gatewayFirmwareVersion 
This is the firmware version of the gateways APN  
String radioFirmwareVersion 
This is the firmware of the radio the gateway uses to listen to sensors with  
String hostAddress 
The primary Host address the gateway will pass sensor data through  
int port 
The primary port the gateway will pass sensor data through  
SecretKey encryptionKey 
(16 byte) Encryption key generated during handshake, if server is restarted or multiple server instances are configured this key needs to match across all instances or the gateway will have to re initialize its security handshake  
byte[] encryptionIV 
(12 byte) Initialization vector generated during handshake, if server is restarted or multiple server instances are configured this key needs to match across all instances or the gateway will have to re initialize its security handshake 

 

Creates a new gateway that takes a pre-shared key allowing for encryption of data packets  

 

Copyright (c) 2017. All rights reserved.
What do you think about this topic? Send feedback!